package com.enjoyor.soa.traffic.server.efoms.dubbo.invoke;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.service.dubbo.ovms.DubboDeviceService;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class DubboFxcDeviceServiceInvoke {

	@Reference(timeout = 10000)
    private DubboDeviceService dubboDeviceService ;

    /**
     * 获取非现场状态信息
     * @return
     */
    public ResultPojo getFxcStatusInfo(String dev_ids) {
        ResultPojo pojo = new ResultPojo();
    	if (null != dubboDeviceService) {
    		pojo = dubboDeviceService.getDevStatusList(null, null, null, dev_ids);
    	}
        return pojo;
    }
}
